New Components: StickyNSG & StickyPrepopulation#347
Merged
Conversation
…ing into try/catch block
MichaelT372
force-pushed
the
sticky-nsg
branch
from
September 24, 2025 12:28
5fc45ec to
59fb36f
Compare
Contributor
Author
|
This is ready for review and merge now |
fernanDOTdo
approved these changes
Mar 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
StickyNSG
A new component Sticky NSG. It is turned off by default and needs to be enabled in ENgridOptions to run.
When enabled, it adds the following functionality:
You can test it on this page: https://support.savingplaces.org/page/88286/donate/1?debug=log
To set yourself some NSG values, go into the page build and uncomment the "set suggestGift values" code block, then load the page. The comment in out again and reload the page to test the Sticky NSG functionality.
Documentation: https://engrid.4sitestudios.com/docs/v2/sticky-nsg
StickyPrepopulation
Another new component StickyPrepopulation. It is also turned off by default and requires being given a set of fields in EngridOptions to run.
The component is intended to "sticky" the prepopulation of fields when coming from a campaign link. By default, EN only prefills from the first click.
What we do is:
This component will not run if the RememberMe component is configured in the client theme.
You can test it on this page: https://support.savingplaces.org/page/88286/donate/1?debug=log
You'll need to send yourself a test email through EN to get a campaign link to set the cookie. I noticed test emails now always set your campaign link data, even through multiple clicks, so you should test it by refreshing the page after the first click.
Documentation: https://engrid.4sitestudios.com/docs/v2/sticky-prepopulation